package cop;

import java.util.ArrayList;

import engine.*;

public class COPMenu extends Room {

	public COPMenu(int width, int height) {
		super(width, height);
	}

	@Override
	protected void initialize() {
		// ROOM
		setName("GameMenu");
		setSpr("Menu");
		setSprSpeed(0.25f);
		// ACTORS
		final Button[] btns = new Button[]
		{ new Button("Singleplayer", "button0"), new Button("Two players", "button0"), new Button("Credits", "button0"), new Button("Exit", "button0") };
		int y = -btns.length / 2;
		for (Button button : btns) {
			addActor(button, getWidth() / 2, (float) (getHeight() / 2 + (y += 1) * button.getBounds().getHeight()));
			button.setSprSpeed(0);
		}
	}

	@Override
	protected void close() {}
}
